//
//  AbstractCalculator.m
//  LearnObjectiveC
//
//  Created by client on 2017/9/11.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import "AbstractCalculator.h"

@implementation AbstractCalculator

-(NSArray*)split:(NSString*)expr opt:(NSString*)opt;
{
    NSAssert(opt, @"opt is not nil");
    NSArray * optNums = [expr componentsSeparatedByString:@","];
    int  intNumber_0 = [[optNums firstObject]intValue];
    int  intNumber_1 = [optNums[1]intValue];
    NSArray * intCapacity = @[@(intNumber_0),@(intNumber_1)];
    return intCapacity;
}
@end
